\documentclass[12pt]{article}

\usepackage{a4wide,graphicx,url,latexsym,makeidx,float,hyperref,longtable,supertabular}
\usepackage{fixltx2e}
\usepackage{listings,color,lstpatch,alltt}
% \usepackage{moreverb} % boxedverbatim
\usepackage{fancyvrb} % nicer than moreverb
\usepackage{sectsty}
\usepackage[left]{eurosym}


\begin{document}

\title{octopus Pin Assignment}
\author{H. H\"o{}gl, B. Sauter\\
     FH Augsburg}

\maketitle

\begin{figure}[H]
\begin{center}
\includegraphics{img/octopuspins.pdf}
\caption{octopus module pin numbering (top view). Pin \# 23 is not available.}
\label{octopus-pins}
\end{center}
\end{figure}


\begin{supertabular}{|r|l|l|l|p{9cm}|}\hline
Pin  &  Signal          &  Type  & Port & Description  \\ \hline\hline
1    &  PE5 (OC3C/INT5) &  i/o   &  5   &              \\ \hline
2    &  PE4 (OC3B/INT4) &  i/o   &  5   &         \\ \hline
3    &  PE7 (IC3/INT7)  &  i/o   &  5   &         \\ \hline
4    &  PB0 (/SS)       &  i/o   &  1   &         \\ \hline
5    &  PB1 (SCK)       &  i/o   &  1   &         \\ \hline
6    &  PB2 (MOSI)      &  i/o   &  1   &         \\ \hline
7    &  PB3 (MISO)      &  i/o   &  1   &         \\ \hline
8    &  PB4 (OC0)       &  i/o   &  1   &         \\ \hline
9    &  PB5 (OC1A)      &  i/o   &  1   &         \\ \hline
10   &  PB6 (OC1B)      &  i/o   &  1   &         \\ \hline
11   &  PB7 (OC2/OC1C)  &  i/o   &  1   &         \\ \hline
12   &  PD0 (SCL/INT0)  &  i/o   &  2   &         \\ \hline
13   &  PD1 (SDA/INT1)  &  i/o   &  2   &         \\ \hline
14   &  PD2 (RXD1/INT2) &  i/o   &  2   &         \\ \hline
15   &  PD3 (TXD1/INT3) &  i/o   &  2   &         \\ \hline
16   &  PD4 (ICP1)       &  i/o   &  2  & Timer/Counter 1 Input Capture Pin         \\ \hline
17   &  PD5 (XCK1)      &  i/o   &  2	& CAN128: TXCAN /XCK1=USART1 External Clock     \\ \hline
18   &  PD6 (T1)        &  i/o   &  2	& CAN128: RXCAN / T1=Clock Input Timer 1      \\ \hline
19   &  PD7 (T2)        &  i/o   &  2   & T2 = Clock Input Timer 2        \\ \hline
20   &  GND             &  power &      &         \\ \hline
21   &  VCC (5V)        &  power &      &         \\ \hline
22   &  RESET           &  i     &      &         \\ \hline\hline
23   &  ---             &  ---   &	& This pin is not available.  \\ \hline
24   &  VCC (5V)        &  power &      &         \\ \hline
25   &  GND             &  power &      &         \\ \hline
26   &  PC0 (A8)        &  i/o   &  3   &         \\ \hline
27   &  PC1 (A9)        &  i/o   &  3   &         \\ \hline
28   &  PC2 (A10)       &  i/o   &  3   &         \\ \hline
29   &  PC3 (A11)       &  i/o   &  3   &         \\ \hline
30   &  PC4 (A12)       &  i/o   &  3   &         \\ \hline
31   &  PC5 (A13)       &  i/o   &  3   &         \\ \hline
32   &  PC6 (A14)       &  i/o   &  3   &         \\ \hline
33   &  PF7 (ADC7/TDI)  &  i/o   &  4   &         \\ \hline
34   &  PF6 (ADC6/TDO)  &  i/o   &  4   &         \\ \hline
35   &  PF5 (ADC5/TMS)  &  i/o   &  4   &         \\ \hline
36   &  PF4 (ADC4/TCK)  &  i/o   &  4   &         \\ \hline
37   &  PF3 (ADC3)      &  i/o   &  4   &         \\ \hline
38   &  PF2 (ADC2)      &  i/o   &  4   &         \\ \hline
39   &  PF1 (ADC1)      &  i/o   &  4   &         \\ \hline
40   &  PF0 (ADC0)      &  i/o   &  4   &         \\ \hline
41   &  PE0 (RXD0/PDI)  &  i/o   &  5   &         \\ \hline
42   &  PE1 (TXD0/PDO)  &  i/o   &  5   &         \\ \hline
43   &  PE2 (XCK0/AINO) &  i/o   &  5   &         \\ \hline
44   &  PE3 (OC3A/AIN1) &  i/o   &  5   &         \\ \hline
\end{supertabular}


\begin{table}[H]
\begin{center}
\begin{supertabular}{|l|c|c|c|c|c|c|c|c|}\hline
Bit & 7 & 6 & 5 & 4 & 3 & 2 & 1 & 0 \\ \hline\hline
Pin & 11 & 10 & 9 & 8 & 7 & 6 & 5 & 4 \\ \hline
Config I/O & I/O & I/O & I/O & I/O & I/O & I/O & I/O & I/O \\ \hline
Config SPI &  &  &  &  & MISO & MOSI & SCK & !SS \\ \hline
Config Timer/PWM & OC2/OC1C & OC1B & OC1A & 0C0  &  &  & & \\ \hline
\end{supertabular}
\caption{Available configurations for port 1}
\label{port-1}
\end{center}
\end{table}

\begin{table}[H]
\begin{center}
\begin{supertabular}{|l|c|c|c|c|c|c|c|c|}\hline
Bit & 7 & 6 & 5 & 4 & 3 & 2 & 1 & 0 \\ \hline\hline
Pin & 19 & 18 & 17 & 16 & 15 & 14 & 13 & 12 \\ \hline
Config I/O & I/O & I/O & I/O & I/O & I/O & I/O & I/O & I/O \\ \hline
Config I2C &  &  &  &  &  &  & SDA & SCL \\ \hline
Config UART &  &  & XCK1  &  & TXD1 & RXD1  &  &  \\ \hline
Config CAN \footnote[1]{Only avaiblable in CAN version of octopus} &  & TXCAN & RXCAN &  &  &  &  &  \\ \hline
Config Interrupt &  &  &  &  & INT3 & INT2 & INT1 & INT0 \\ \hline
Config Timer & T2  & T1 &  & ICP1 &  &  &  &  \\ \hline
\end{supertabular}
\caption{Available configurations for port 2}
\label{port-1}
\end{center}
\end{table}



\end{document}
